package com.example.spidertp.core.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2023/8/13 11:06 上午
 */

@ApiModel("线程池的警告通知")
@TableName("t_tp_warning_notice")
@Data
public class TpWarningNotice {

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("通知类型")
    private String noticeType;

    @ApiModelProperty("线程池名称")
    private String poolName;

    @ApiModelProperty("核心线程数")
    private int corePoolSize;

    @ApiModelProperty("最大线程数")
    private int maximumPoolSize;

    @ApiModelProperty("当前线程数")
    private int currentPoolSize;

    @ApiModelProperty("当前队列排队个数")
    private int currentQueueSize;

    @ApiModelProperty("已启动的最大线程数")
    private int hisMaximumPoolSize;

    @ApiModelProperty("空闲线程存活时间,默认单位是SECONDS，秒")
    private Long keepAliveTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("创建时间")
    private Timestamp createTime;

}
